from werkzeug.security import generate_password_hash

from flaskr import *
from flask import g, render_template, redirect, url_for, make_response


# a simple page that says hello
@app.route('/')
@app.route('/index')
def index():
    user = None if g.user is None else g.user['username']
    return render_template('/index.html', user=user)

# Deprecated
@app.route('/takeDUID', methods=('GET', 'POST'))
def takeDUID():
    return duid.deprecated_occupy()

# Deprecated
@app.route('/DUIDUsed', methods=('POST',))
def DUIDUsed():
    return duid.deprecated_occupied()

if __name__ == '__main__':
    app.run(port=5000, debug=True)

